package com.fpt.edu.vn.h2tv.dao.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TbFeedback entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_feedback", catalog = "bookdb")
public class TbFeedback implements java.io.Serializable {

	// Fields

	private Integer feedBackId;
	private String email;
	private String title;
	private String contents;
	private Timestamp createTime;
	private Boolean isReaded;
	
	// Constructors

	/** default constructor */
	public TbFeedback() {
	}

	/** minimal constructor */
	public TbFeedback(String email, String title, String contents) {
		this.email = email;
		this.title = title;
		this.contents = contents;
	}

	/** full constructor */
	public TbFeedback(String email, String title, String contents, Timestamp createTime) {
		this.email = email;
		this.title = title;
		this.contents = contents;
		this.createTime = createTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "FeedBackID", unique = true, nullable = false)
	public Integer getFeedBackId() {
		return this.feedBackId;
	}

	public void setFeedBackId(Integer feedBackId) {
		this.feedBackId = feedBackId;
	}
	@Column(name = "Email", nullable = false)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "Contents", nullable = false, length = 65535)
	public String getContents() {
		return this.contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	@Column(name = "CreateTime", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name ="IsReaded")
    public Boolean getIsReaded() {
        return isReaded;
    }

    public void setIsReaded(Boolean isReaded) {
        this.isReaded = isReaded;
    }
    /**
     * Get value of title.
     * @return the title
     */
    @Column(name ="Title")
    public String getTitle() {
        return title;
    }

    /**
     * Set the value for title.
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

 
	

}